import http from './httpInstance'

// 监控点在离线趋势
export const cameraOnOfflineTrendService = (data) => {
  return http({
    method: 'post',
    url: '/gscaps/api/v1/statistics/cameraOnOfflineTrend',
    data
  })
}
// 统计监控点数
export const cameraInfoService = (data) => {
  return http({
    method: 'post',
    url: '/gscaps/api/v1/statistics/cameraInfo',
    data
  })
}
// 按下级平台统计监控点在离线
export const cameraOnOfflineByPlatformService = (data) => {
  return http({
    method: 'post',
    url: '/gscaps/api/v1/statistics/cameraOnOfflineByPlatform',
    data
  })
}

// 学校监控点数
export const schoolCamera = (data) => {
  return http({
    method: 'post',
    url: '/gscaps/api/v1/statistics/schoolCamera',
    data
  })
}


// 统计监控点总览
export const cameraOverview = (data) => {
  return http({
    method: 'post',
    url: '/gscaps/api/v1/statistics/cameraOverview',
    data
  })
}

export default {
  cameraOnOfflineByPlatformService,
  cameraInfoService,
  cameraOnOfflineTrendService,
  schoolCamera,
  cameraOverview
}
